﻿<%@ Page Language="C#" MasterPageFile="~/MasterPagePopup.master" AutoEventWireup="true" CodeFile="CustomerDetails.aspx.cs" Inherits="FE_CustomerDetails" Title="Untitled Page" %>
<%@ Register Src="~/UserControl/CustomerDetails.ascx" TagName="CustomerDetails" TagPrefix="uc" %>


<asp:Content ID="Content2" ContentPlaceHolderID="ModalContent" Runat="Server">
    <uc:CustomerDetails runat="server" ID="uxCustomerDetails" />
    <div class="section-separator"></div>
    <gr:Container ID="uxContainerTransHistory" runat="server" HeaderText="Lịch sử giao dịch">
        <gr:GuruGrid runat="server" ID="uxTransactionGrid" AllowSorting="true" AllowFilteringByColumn="false"
            AllowPaging="true" PageSize="10" OnNeedDataSource="uxTransactionGrid_NeedDataSource"
            OnItemCommand="uxTransactionGrid_ItemCommand" OnItemDataBound="uxTransactionGrid_ItemDataBound">
            <MasterTableView>
                <Columns>
                    <gr:GuruGridBoundColumn Format="Sequence" HeaderText="Seq">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridTemplateColumn ItemStyle-Width="70px">
                        <ItemTemplate>
                            <gr:LinkButton runat="server" IsStandard="true" ID="uxCheckIn" Text="Nhận phòng" CommandName="CheckIn"></gr:LinkButton>
                        </ItemTemplate>
                    </gr:GuruGridTemplateColumn>
                    <gr:GuruGridBoundColumn Visible="false" Format="StaticString" UniqueName="NameVN" DataField="NameVN" HeaderText="Tên giao dịch">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn Visible="false" Format="StaticString" UniqueName="NameEN" DataField="NameEN" HeaderText="Tên giao dịch">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="CheckInDate"  Format="DateTime" HeaderText="Ngày đến">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="CheckOutDate"  Format="DateTime" HeaderText="Ngày đi">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="Description"  HeaderText="Ghi chú">
                    </gr:GuruGridBoundColumn>
                </Columns>
            </MasterTableView>
        </gr:GuruGrid>
    </gr:Container>
    <div class="ContainerInput">
        <gr:ContainerButton ID="ContainerButton1" runat="server">
            <gr:LinkButton ID="uxBooking" runat="server" SizeType="FixedSmallShort" Text="Đặt phòng" CssClassIcon="icon_booking" OnClick="uxBooking_Click"></gr:LinkButton>
            <gr:LinkButton ID="uxCheckIn" runat="server" SizeType="FixedSmallShort" Text="Check In" CssClassIcon="icon_checkin" OnClick="uxCheckIn_Click"></gr:LinkButton>
            <gr:LinkButton Text="Lưu" runat="server" ID="uxSave" OnClientClick="return ValidateCustomerInfo();" SizeType="FixedSmallShort" OnClick="uxSave_Click"
                CssClassIcon="icon_save" />
            <gr:LinkButton Text="Đóng" runat="server" ID="uxClose" SizeType="FixedSmallShort"
                CssClassIcon="icon_delete" OnClientClick="return ClosePopupModal();" />
        </gr:ContainerButton>
    </div>
</asp:Content>

